<?php
	include ('../config/validacao.php');

	function leArquivoColocaNoArray($arq){
		$arquivo = fopen("log/".$arq,'r') or die("Erro abertura de arquivo");
		while(!feof($arquivo)){
			$linha = fgets($arquivo);
			echo $linha;
		}
		fclose($arquivo);
	}
	
?>
<!--
<html>
<head>
	<title>textarea</title>
	<script src="modlogin/js/jquery-linedtextarea.js"></script>
	<link href="modlogin/css/jquery-linedtextarea.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="target">
<br>
<textarea class="lined" rows="20" cols="150">
<?php //leArquivoColocaNoArray('syslog');?>
</textarea>
</div>

<script>
	$(function() {
		$(".lined").linedtextarea(
			{selectedLine: 1}
		);
	});
</script>

</body>
</html> -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
		<title><?php include('../titulo.php')?></title>
        <link rel="icon" type="image/png" href="../images/icone.png">
        <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="../js/scripts.js" charset="ISO-8859-1"></script>
        <link rel="stylesheet" href="../css/jquery-ui-1.8.21.custom.css" type="text/css" media="all" />

        <link href="../bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="../css/index.css" rel="stylesheet" media="screen">
		<script src="../bootstrap/js/bootstrap.min.js"></script>
		
		<script src="modlogin/js/jquery-linedtextarea.js"></script>
		<link href="modlogin/css/jquery-linedtextarea.css" type="text/css" rel="stylesheet" />
		
        <meta charset="iso-8859-1">

</head>
<body>
        <div id="container">
                <div id="topo" style="text-align:left;position:absolute;">
                        <?php include('../cabecalho.php') ?>
                </div>
                <br><br>
		<fieldset>
                	<legend>Log</legend>

				<textarea style="width:100%;font-size:small;font-family:verdana;" class="lined" rows="20" cols="150">
<?php leArquivoColocaNoArray('syslog');?>
				</textarea>
                <div id="body">
					<script>
						$(function() {
							$(".lined").linedtextarea(
								{selectedLine: 1}
							);
						});
					</script>
                </div>
		</fieldset>
        </div>
</body>
</html>
